// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_PRODUCT_REGISTER
// * CreateDate    : 2011-12-26 11:08:53
// * Creater       : CodeSmith
// * LastChangeDate: 2011-12-26 11:08:53
// * LastChanger   : 2011-12-26 11:08:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class RepProductRegisterTable : TableInfo
    {
		public const string C_TableName = "REP_PRODUCT_REGISTER";
		
		public const string C_REGISTER_ID = "REGISTER_ID";
		public const string C_SUPPLIER_ID = "SUPPLIER_ID";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_CONTACT_ID = "CONTACT_ID";
		public const string C_REGISTER_CODE = "REGISTER_CODE";
		public const string C_REGISTER_DEPARTMENT = "REGISTER_DEPARTMENT";
		public const string C_REGISTER_PERSON = "REGISTER_PERSON";
		public const string C_REGISTER_DATE = "REGISTER_DATE";
		public const string C_REMARK = "REMARK";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_STATUS = "STATUS";
		
		public RepProductRegisterTable()
        {
            _tableName = "REP_PRODUCT_REGISTER";
        }
		
		protected static RepProductRegisterTable _current;
        public static RepProductRegisterTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new RepProductRegisterTable();

            _current.Add(C_REGISTER_ID, new ColumnInfo(C_REGISTER_ID,"RegisterId", true, typeof(string)));
            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID,"SupplierId", false, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_CONTACT_ID, new ColumnInfo(C_CONTACT_ID,"ContactId", false, typeof(string)));
            _current.Add(C_REGISTER_CODE, new ColumnInfo(C_REGISTER_CODE,"RegisterCode", false, typeof(string)));
            _current.Add(C_REGISTER_DEPARTMENT, new ColumnInfo(C_REGISTER_DEPARTMENT,"RegisterDepartment", false, typeof(string)));
            _current.Add(C_REGISTER_PERSON, new ColumnInfo(C_REGISTER_PERSON,"RegisterPerson", false, typeof(string)));
            _current.Add(C_REGISTER_DATE, new ColumnInfo(C_REGISTER_DATE,"RegisterDate", false, typeof(DateTime)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo REGISTER_ID
        {
            get { return this[C_REGISTER_ID]; }
        }
		
		public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo CONTACT_ID
        {
            get { return this[C_CONTACT_ID]; }
        }
		
		public ColumnInfo REGISTER_CODE
        {
            get { return this[C_REGISTER_CODE]; }
        }
		
		public ColumnInfo REGISTER_DEPARTMENT
        {
            get { return this[C_REGISTER_DEPARTMENT]; }
        }
		
		public ColumnInfo REGISTER_PERSON
        {
            get { return this[C_REGISTER_PERSON]; }
        }
		
		public ColumnInfo REGISTER_DATE
        {
            get { return this[C_REGISTER_DATE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

